package com.hl.sfzy.service.impl;

import com.hl.sfzy.entity.FieldsOfExcellence;
import com.hl.sfzy.mapper.FieldsOfExcellenceMapper;
import com.hl.sfzy.service.FieldsOfExcellenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FieldsOfExcellenceServiceImpl implements FieldsOfExcellenceService {

    @Autowired
    private FieldsOfExcellenceMapper fieldsOfExcellenceMapper;

    @Override
    public List<FieldsOfExcellence> selectAll() {
        return fieldsOfExcellenceMapper.selectAll();
    }

    @Override
    public List<FieldsOfExcellence> selectByConsultant() {
        return fieldsOfExcellenceMapper.selectByConsultant();
    }

    @Override
    public int insert(FieldsOfExcellence record) {
        return fieldsOfExcellenceMapper.insert(record);
    }

    @Override
    public int deleteById(Long id) {
        return fieldsOfExcellenceMapper.deleteById(id);
    }
    @Override
    public List<FieldsOfExcellence> selectById(Long id) {
        return fieldsOfExcellenceMapper.selectById(id);
    }

    @Override
    public List<FieldsOfExcellence> selectByConsultantId(int id) {
        return fieldsOfExcellenceMapper.selectByConsultantId(id);
    }
}
